﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Models
{
    /// <summary>
    /// 名字，生命，等级，经验值等
    /// </summary>
    [Serializable]
    public class PersonBase
    {

        public PersonBase()
        {

        }
        /// <summary>
        /// 初始化姓名，描述，个性头像，血量，等级，经验值
        /// </summary>
        /// <param name="name">姓名</param>
        /// <param name="des">描述</param>
        /// <param name="ionsrc">个性头像</param>
        /// <param name="nowhp">现在血量</param>
        /// <param name="maxhp">最大血量</param>
        /// <param name="lv">等级</param>
        /// <param name="exp">经验值</param>
        public PersonBase(string name,string des , string ionsrc, int nowhp,int maxhp,int lv, int exp)
        {

            PlayerName = name;
            PlayerDes = des;
            IconSrc = ionsrc;
            NowHp = nowhp;
            MaxHp = maxhp;
            Lv = lv;
            Exp = exp;

        }

        /// <summary>
        /// 玩家的名字
        /// </summary>
        public string PlayerName;
        /// <summary>
        /// 玩家描述
        /// </summary>
        public string PlayerDes;

        /// <summary>
        /// 个人头像图片
        /// </summary>
        public string IconSrc;

        /// <summary>
        /// 现在血量
        /// </summary>
        public int NowHp;
        /// <summary>
        /// 最大血量
        /// </summary>
        public int MaxHp;
        /// <summary>
        /// 等级
        /// </summary>
        public int Lv;
        /// <summary>
        /// 经验值
        /// </summary>
        public int Exp;


    }
}
